<template xmlns="http://www.w3.org/1999/html">
  <sea-data-table ref="tableObject" url="/sys/ibatis/list">
    <!--表头-->
    <sea-table-header slot="header">
      <!--标题栏-->
      <sea-table-title slot="title" title="MyBatis Online"
                      subtitle="在线读取 MyBatis 的配置内容"></sea-table-title>

      <!--输入-->
      <template slot="input">
        <smart-form-layout require name="keyword" label="关键字" :span="6">
          <smart-text-view name="keyword" placeholder="Label"></smart-text-view>
        </smart-form-layout>
      </template>
    </sea-table-header>

    <!--表头-->
    <template slot="columns">
      <el-table-column property="statementType" label="statement" width="100"></el-table-column>
      <el-table-column property="sqlCommandType" label="SQL类型" width="100"></el-table-column>
      <sea-col-link property="id" label="唯一标识" :click="onAction"></sea-col-link>
      <el-table-column property="resource" label="资源文件" width="360"></el-table-column>
    </template>
  </sea-data-table>
</template>

<script>

/**
 *
 * 系统访问日志
 */
export default {
    components: {},
    methods: {
        /**
         * 操作栏事件分发
         * @param evt 事件
         * @param row 行级对象
         * @param old 可供回滚的参数
         */
        onAction: function (evt, row, old) {
            this.$refs.panel.onAction(evt, row, old);
        }
    }
}
</script>
